﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;

namespace Basefr.Core.Entities
{
    ///// <summary>
    ///// Entity基类
    ///// </summary>
    //public abstract class EntityBase<TPrimaryKey> : CreationAuditedEntity<TPrimaryKey>, ISoftDelete
    //    where TPrimaryKey : struct
    //{
    //    public bool IsDeleted { get; set; }
    //}

    public abstract class EntityBase<TPrimaryKey> : AuditedEntity<TPrimaryKey>, ISoftDelete
        where TPrimaryKey : struct
    {
        public bool IsDeleted { get; set; }
    }

    /// <summary>
    /// 主键为int的Entity基类
    /// </summary>
    public abstract class EntityBase : EntityBase<int>
    {

    }
}
